package net.devkit.common.toolkit.retval;

/**Servicer 方法，返回值生成器
 *
 */
public abstract class RetcodeGenerator {
	private volatile static Long retcode = 1l;
	
	public static Long next(){
		return ++retcode;
	} 
	/**
	 * 成功
	 */
	public static final Integer RETVAL_SUCCESS = 1;
	/**
	 * 失败
	 */
	public static final Integer RETVAL_FAILED = 0;
	/**
	 * 异常
	 */
	public static final Integer RETVAL_EXCEPTION = -1;

}
